package day020.homework;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class P3 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:\\day020\\p2.txt"));
        List<String> list = new ArrayList<>();

        String str;
        while ((str = br.readLine()) != null) {
            list.add(str);
        }

        for (String s : list) {
            System.out.println(s);
        }
    }
}
